<?php

ini_set("memory_limit", "800M");

include_once 'config.php';
include_once 'objects/document.php';
include_once 'objects/da.php';
include_once 'parser.php';

$parser = new Parser();

$parser->setConfig($config);
$parser->setConverterVal($converterVal);
$parser->run();

$result = array(
    'Tags'          => $parser->getTags(),
    'DA'            => $parser->getDa(),
    'Documents'     => $parser->getDocs(),
);
$parser->clear();

var_dump($result);